
callback2:     file format elf64-littleaarch64


Disassembly of section .init:

0000000000400408 <_init>:
  400408:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  40040c:	910003fd 	mov	x29, sp
  400410:	94000032 	bl	4004d8 <call_weak_fn>
  400414:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400418:	d65f03c0 	ret

Disassembly of section .plt:

0000000000400420 <.plt>:
  400420:	a9bf7bf0 	stp	x16, x30, [sp, #-16]!
  400424:	90000090 	adrp	x16, 410000 <__FRAME_END__+0xf7d4>
  400428:	f947fe11 	ldr	x17, [x16, #4088]
  40042c:	913fe210 	add	x16, x16, #0xff8
  400430:	d61f0220 	br	x17
  400434:	d503201f 	nop
  400438:	d503201f 	nop
  40043c:	d503201f 	nop

0000000000400440 <qsort@plt>:
  400440:	b0000090 	adrp	x16, 411000 <qsort@GLIBC_2.17>
  400444:	f9400211 	ldr	x17, [x16]
  400448:	91000210 	add	x16, x16, #0x0
  40044c:	d61f0220 	br	x17

0000000000400450 <__libc_start_main@plt>:
  400450:	b0000090 	adrp	x16, 411000 <qsort@GLIBC_2.17>
  400454:	f9400611 	ldr	x17, [x16, #8]
  400458:	91002210 	add	x16, x16, #0x8
  40045c:	d61f0220 	br	x17

0000000000400460 <__gmon_start__@plt>:
  400460:	b0000090 	adrp	x16, 411000 <qsort@GLIBC_2.17>
  400464:	f9400a11 	ldr	x17, [x16, #16]
  400468:	91004210 	add	x16, x16, #0x10
  40046c:	d61f0220 	br	x17

0000000000400470 <abort@plt>:
  400470:	b0000090 	adrp	x16, 411000 <qsort@GLIBC_2.17>
  400474:	f9400e11 	ldr	x17, [x16, #24]
  400478:	91006210 	add	x16, x16, #0x18
  40047c:	d61f0220 	br	x17

0000000000400480 <printf@plt>:
  400480:	b0000090 	adrp	x16, 411000 <qsort@GLIBC_2.17>
  400484:	f9401211 	ldr	x17, [x16, #32]
  400488:	91008210 	add	x16, x16, #0x20
  40048c:	d61f0220 	br	x17

Disassembly of section .text:

0000000000400490 <_start>:
  400490:	d280001d 	mov	x29, #0x0                   	// #0
  400494:	d280001e 	mov	x30, #0x0                   	// #0
  400498:	aa0003e5 	mov	x5, x0
  40049c:	f94003e1 	ldr	x1, [sp]
  4004a0:	910023e2 	add	x2, sp, #0x8
  4004a4:	910003e6 	mov	x6, sp
  4004a8:	580000c0 	ldr	x0, 4004c0 <_start+0x30>
  4004ac:	580000e3 	ldr	x3, 4004c8 <_start+0x38>
  4004b0:	58000104 	ldr	x4, 4004d0 <_start+0x40>
  4004b4:	97ffffe7 	bl	400450 <__libc_start_main@plt>
  4004b8:	97ffffee 	bl	400470 <abort@plt>
  4004bc:	00000000 	.inst	0x00000000 ; undefined
  4004c0:	004005e0 	.word	0x004005e0
  4004c4:	00000000 	.word	0x00000000
  4004c8:	00400770 	.word	0x00400770
  4004cc:	00000000 	.word	0x00000000
  4004d0:	004007e8 	.word	0x004007e8
  4004d4:	00000000 	.word	0x00000000

00000000004004d8 <call_weak_fn>:
  4004d8:	90000080 	adrp	x0, 410000 <__FRAME_END__+0xf7d4>
  4004dc:	f947f000 	ldr	x0, [x0, #4064]
  4004e0:	b4000040 	cbz	x0, 4004e8 <call_weak_fn+0x10>
  4004e4:	17ffffdf 	b	400460 <__gmon_start__@plt>
  4004e8:	d65f03c0 	ret
  4004ec:	00000000 	.inst	0x00000000 ; undefined

00000000004004f0 <deregister_tm_clones>:
  4004f0:	b0000081 	adrp	x1, 411000 <qsort@GLIBC_2.17>
  4004f4:	b0000080 	adrp	x0, 411000 <qsort@GLIBC_2.17>
  4004f8:	91014021 	add	x1, x1, #0x50
  4004fc:	91014000 	add	x0, x0, #0x50
  400500:	91001c21 	add	x1, x1, #0x7
  400504:	cb000021 	sub	x1, x1, x0
  400508:	f100383f 	cmp	x1, #0xe
  40050c:	540000a9 	b.ls	400520 <deregister_tm_clones+0x30>  // b.plast
  400510:	580000c1 	ldr	x1, 400528 <deregister_tm_clones+0x38>
  400514:	b4000061 	cbz	x1, 400520 <deregister_tm_clones+0x30>
  400518:	d61f0020 	br	x1
  40051c:	d503201f 	nop
  400520:	d65f03c0 	ret
  400524:	d503201f 	nop
	...

0000000000400530 <register_tm_clones>:
  400530:	b0000081 	adrp	x1, 411000 <qsort@GLIBC_2.17>
  400534:	b0000080 	adrp	x0, 411000 <qsort@GLIBC_2.17>
  400538:	91014021 	add	x1, x1, #0x50
  40053c:	91014000 	add	x0, x0, #0x50
  400540:	cb000021 	sub	x1, x1, x0
  400544:	9343fc21 	asr	x1, x1, #3
  400548:	8b41fc21 	add	x1, x1, x1, lsr #63
  40054c:	9341fc21 	asr	x1, x1, #1
  400550:	b4000081 	cbz	x1, 400560 <register_tm_clones+0x30>
  400554:	580000a2 	ldr	x2, 400568 <register_tm_clones+0x38>
  400558:	b4000042 	cbz	x2, 400560 <register_tm_clones+0x30>
  40055c:	d61f0040 	br	x2
  400560:	d65f03c0 	ret
  400564:	d503201f 	nop
	...

0000000000400570 <__do_global_dtors_aux>:
  400570:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  400574:	910003fd 	mov	x29, sp
  400578:	f9000bf3 	str	x19, [sp, #16]
  40057c:	b0000093 	adrp	x19, 411000 <qsort@GLIBC_2.17>
  400580:	39413260 	ldrb	w0, [x19, #76]
  400584:	35000080 	cbnz	w0, 400594 <__do_global_dtors_aux+0x24>
  400588:	97ffffda 	bl	4004f0 <deregister_tm_clones>
  40058c:	52800020 	mov	w0, #0x1                   	// #1
  400590:	39013260 	strb	w0, [x19, #76]
  400594:	f9400bf3 	ldr	x19, [sp, #16]
  400598:	a8c27bfd 	ldp	x29, x30, [sp], #32
  40059c:	d65f03c0 	ret

00000000004005a0 <frame_dummy>:
  4005a0:	90000080 	adrp	x0, 410000 <__FRAME_END__+0xf7d4>
  4005a4:	91380000 	add	x0, x0, #0xe00
  4005a8:	f9400001 	ldr	x1, [x0]
  4005ac:	b5000061 	cbnz	x1, 4005b8 <frame_dummy+0x18>
  4005b0:	17ffffe0 	b	400530 <register_tm_clones>
  4005b4:	d503201f 	nop
  4005b8:	58000101 	ldr	x1, 4005d8 <frame_dummy+0x38>
  4005bc:	b4ffffa1 	cbz	x1, 4005b0 <frame_dummy+0x10>
  4005c0:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  4005c4:	910003fd 	mov	x29, sp
  4005c8:	d63f0020 	blr	x1
  4005cc:	a8c17bfd 	ldp	x29, x30, [sp], #16
  4005d0:	17ffffd8 	b	400530 <register_tm_clones>
  4005d4:	d503201f 	nop
	...

00000000004005e0 <main>:
int sort_function(const void *a, const void *b);

int list[5] = {54, 21, 11, 67, 22};

int main()
{
  4005e0:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  4005e4:	910003fd 	mov	x29, sp
	int x;
	
	qsort((void*)list, 5, sizeof(list[0]), sort_function);
  4005e8:	90000000 	adrp	x0, 400000 <_init-0x408>
  4005ec:	91194001 	add	x1, x0, #0x650
  4005f0:	b0000080 	adrp	x0, 411000 <qsort@GLIBC_2.17>
  4005f4:	9100e000 	add	x0, x0, #0x38
  4005f8:	aa0103e3 	mov	x3, x1
  4005fc:	d2800082 	mov	x2, #0x4                   	// #4
  400600:	d28000a1 	mov	x1, #0x5                   	// #5
  400604:	97ffff8f 	bl	400440 <qsort@plt>
	for (x = 0; x < 5; x++) {
  400608:	b9001fbf 	str	wzr, [x29, #28]
  40060c:	1400000b 	b	400638 <main+0x58>
		printf("%i\n", list[x]);
  400610:	b0000080 	adrp	x0, 411000 <qsort@GLIBC_2.17>
  400614:	9100e000 	add	x0, x0, #0x38
  400618:	b9801fa1 	ldrsw	x1, [x29, #28]
  40061c:	b8617801 	ldr	w1, [x0, x1, lsl #2]
  400620:	90000000 	adrp	x0, 400000 <_init-0x408>
  400624:	91202000 	add	x0, x0, #0x808
  400628:	97ffff96 	bl	400480 <printf@plt>
	for (x = 0; x < 5; x++) {
  40062c:	b9401fa0 	ldr	w0, [x29, #28]
  400630:	11000400 	add	w0, w0, #0x1
  400634:	b9001fa0 	str	w0, [x29, #28]
  400638:	b9401fa0 	ldr	w0, [x29, #28]
  40063c:	7100101f 	cmp	w0, #0x4
  400640:	54fffe8d 	b.le	400610 <main+0x30>
	}
		
	return 0;
  400644:	52800000 	mov	w0, #0x0                   	// #0
}
  400648:	a8c27bfd 	ldp	x29, x30, [sp], #32
  40064c:	d65f03c0 	ret

0000000000400650 <sort_function>:

int sort_function(const void *a, const void *b)
{
  400650:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  400654:	910003fd 	mov	x29, sp
  400658:	f9000fa0 	str	x0, [x29, #24]
  40065c:	f9000ba1 	str	x1, [x29, #16]
	printf("\ta = %d  b = %d\n", *(int*)a, *(int*)b);
  400660:	f9400fa0 	ldr	x0, [x29, #24]
  400664:	b9400001 	ldr	w1, [x0]
  400668:	f9400ba0 	ldr	x0, [x29, #16]
  40066c:	b9400002 	ldr	w2, [x0]
  400670:	90000000 	adrp	x0, 400000 <_init-0x408>
  400674:	91204000 	add	x0, x0, #0x810
  400678:	97ffff82 	bl	400480 <printf@plt>
	return *(int*)a - *(int*)b;
  40067c:	f9400fa0 	ldr	x0, [x29, #24]
  400680:	b9400001 	ldr	w1, [x0]
  400684:	f9400ba0 	ldr	x0, [x29, #16]
  400688:	b9400000 	ldr	w0, [x0]
  40068c:	4b000020 	sub	w0, w1, w0
}
  400690:	a8c27bfd 	ldp	x29, x30, [sp], #32
  400694:	d65f03c0 	ret

0000000000400698 <t>:

void t()
{
  400698:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  40069c:	910003fd 	mov	x29, sp
	int x;
	
	printf("%d\n", sizeof(long double));
  4006a0:	90000000 	adrp	x0, 400000 <_init-0x408>
  4006a4:	9120a000 	add	x0, x0, #0x828
  4006a8:	d2800201 	mov	x1, #0x10                  	// #16
  4006ac:	97ffff75 	bl	400480 <printf@plt>
	printf("%d\n", sizeof(long long));
  4006b0:	90000000 	adrp	x0, 400000 <_init-0x408>
  4006b4:	9120a000 	add	x0, x0, #0x828
  4006b8:	d2800101 	mov	x1, #0x8                   	// #8
  4006bc:	97ffff71 	bl	400480 <printf@plt>
	printf("%d\n", sizeof(double));
  4006c0:	90000000 	adrp	x0, 400000 <_init-0x408>
  4006c4:	9120a000 	add	x0, x0, #0x828
  4006c8:	d2800101 	mov	x1, #0x8                   	// #8
  4006cc:	97ffff6d 	bl	400480 <printf@plt>
	printf("%d\n", sizeof(long));
  4006d0:	90000000 	adrp	x0, 400000 <_init-0x408>
  4006d4:	9120a000 	add	x0, x0, #0x828
  4006d8:	d2800101 	mov	x1, #0x8                   	// #8
  4006dc:	97ffff69 	bl	400480 <printf@plt>
	printf("%d\n", sizeof(short));
  4006e0:	90000000 	adrp	x0, 400000 <_init-0x408>
  4006e4:	9120a000 	add	x0, x0, #0x828
  4006e8:	d2800041 	mov	x1, #0x2                   	// #2
  4006ec:	97ffff65 	bl	400480 <printf@plt>
	printf("%d\n", 0x7c << 12);
  4006f0:	90000000 	adrp	x0, 400000 <_init-0x408>
  4006f4:	9120a000 	add	x0, x0, #0x828
  4006f8:	321213e1 	mov	w1, #0x7c000               	// #507904
  4006fc:	97ffff61 	bl	400480 <printf@plt>
	x = 20;
  400700:	52800280 	mov	w0, #0x14                  	// #20
  400704:	b9001fa0 	str	w0, [x29, #28]
	x = (((x >= 4) && (x < (4 + 2))) ? 10 : 
  400708:	b9401fa0 	ldr	w0, [x29, #28]
  40070c:	71000c1f 	cmp	w0, #0x3
  400710:	5400008d 	b.le	400720 <t+0x88>
  400714:	b9401fa0 	ldr	w0, [x29, #28]
  400718:	7100141f 	cmp	w0, #0x5
  40071c:	5400016d 	b.le	400748 <t+0xb0>
		 ((x >= 7) && (x < (8 + 1))) ? 11 :
  400720:	b9401fa0 	ldr	w0, [x29, #28]
  400724:	7100181f 	cmp	w0, #0x6
  400728:	540000cd 	b.le	400740 <t+0xa8>
  40072c:	b9401fa0 	ldr	w0, [x29, #28]
  400730:	7100201f 	cmp	w0, #0x8
  400734:	5400006c 	b.gt	400740 <t+0xa8>
  400738:	52800160 	mov	w0, #0xb                   	// #11
	x = (((x >= 4) && (x < (4 + 2))) ? 10 : 
  40073c:	14000004 	b	40074c <t+0xb4>
		 ((x >= 7) && (x < (8 + 1))) ? 11 :
  400740:	52801fe0 	mov	w0, #0xff                  	// #255
	x = (((x >= 4) && (x < (4 + 2))) ? 10 : 
  400744:	14000002 	b	40074c <t+0xb4>
  400748:	52800140 	mov	w0, #0xa                   	// #10
  40074c:	b9001fa0 	str	w0, [x29, #28]
		 0xff);
	printf("%d\n", x);
  400750:	90000000 	adrp	x0, 400000 <_init-0x408>
  400754:	9120a000 	add	x0, x0, #0x828
  400758:	b9401fa1 	ldr	w1, [x29, #28]
  40075c:	97ffff49 	bl	400480 <printf@plt>
}
  400760:	d503201f 	nop
  400764:	a8c27bfd 	ldp	x29, x30, [sp], #32
  400768:	d65f03c0 	ret
  40076c:	00000000 	.inst	0x00000000 ; undefined

0000000000400770 <__libc_csu_init>:
  400770:	a9bc7bfd 	stp	x29, x30, [sp, #-64]!
  400774:	910003fd 	mov	x29, sp
  400778:	a9025bf5 	stp	x21, x22, [sp, #32]
  40077c:	90000095 	adrp	x21, 410000 <__FRAME_END__+0xf7d4>
  400780:	a90153f3 	stp	x19, x20, [sp, #16]
  400784:	90000094 	adrp	x20, 410000 <__FRAME_END__+0xf7d4>
  400788:	9137c2b5 	add	x21, x21, #0xdf0
  40078c:	9137e294 	add	x20, x20, #0xdf8
  400790:	cb150294 	sub	x20, x20, x21
  400794:	a90363f7 	stp	x23, x24, [sp, #48]
  400798:	aa0203f6 	mov	x22, x2
  40079c:	2a0003f8 	mov	w24, w0
  4007a0:	aa0103f7 	mov	x23, x1
  4007a4:	97ffff19 	bl	400408 <_init>
  4007a8:	9343fe94 	asr	x20, x20, #3
  4007ac:	b4000154 	cbz	x20, 4007d4 <__libc_csu_init+0x64>
  4007b0:	d2800013 	mov	x19, #0x0                   	// #0
  4007b4:	f8737aa3 	ldr	x3, [x21, x19, lsl #3]
  4007b8:	aa1603e2 	mov	x2, x22
  4007bc:	aa1703e1 	mov	x1, x23
  4007c0:	2a1803e0 	mov	w0, w24
  4007c4:	91000673 	add	x19, x19, #0x1
  4007c8:	d63f0060 	blr	x3
  4007cc:	eb13029f 	cmp	x20, x19
  4007d0:	54ffff21 	b.ne	4007b4 <__libc_csu_init+0x44>  // b.any
  4007d4:	a94153f3 	ldp	x19, x20, [sp, #16]
  4007d8:	a9425bf5 	ldp	x21, x22, [sp, #32]
  4007dc:	a94363f7 	ldp	x23, x24, [sp, #48]
  4007e0:	a8c47bfd 	ldp	x29, x30, [sp], #64
  4007e4:	d65f03c0 	ret

00000000004007e8 <__libc_csu_fini>:
  4007e8:	d65f03c0 	ret

Disassembly of section .fini:

00000000004007ec <_fini>:
  4007ec:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  4007f0:	910003fd 	mov	x29, sp
  4007f4:	a8c17bfd 	ldp	x29, x30, [sp], #16
  4007f8:	d65f03c0 	ret
